home *** CD-ROM | disk | FTP | other *** search
- Subject: Menu Bar Initialization
- Sent: 5/30/96 12:17 PM
- Received: 5/30/96 12:31 PM
- From: Michael S Tingey, tingey@itsnet.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- In converting our part to DR5, we have attempted to initialize the menubar
- via resources as is done by the Draw part. When we make the
- call ""GetMenuBar(ev)->InitializeFromResource(ev, kMenuBar);" we get the
- assert "FW_CMenuItem::Read should never have been called").
- Any ideas why? The following is the stack crawl from the assert.
-
- Thanks,
- Mike Tingey
-
- **** GetMenuBar(ev)->InitializeFromResource(ev, kMenuBar);
- //CLayoutPart::Initialize//
- **** InitializeFromStream(ev, stream); //FW_CMenuBar::InitializeFromResource//
- **** FW_READ_DYNAMIC_OBJECT(stream, &pullDownMenu, FW_CPullDownMenu);
- //FW_CMenuBar::InitializeFromStream//
- ****
- FW_ReadOBject<16FW_CPullDownMenu>(FW_CreadableStream&,FW_CPullDownMenu*&);
- //??//
- **** object = PrivCreateObject(readableStream, pair ? pair->fKey :
- FW_kNullTypeConstant); // FW_CPrivArchiver::CreateObject//
- **** initialize(readableStream, classLabel, objectPtr); //
- FW_CPrivArchiver::PrivCreateObject//
- **** new (object) FW_CPullDownMenu(ev, stream);
- //FW_CPullDownMenu::InitializeFromArchive//
- **** FW_READ_DYNAMIC_OBJECT(stream, &menuItem, FW_CMenuItem);
- //FW_CPullDownMenu::FW_CPullDownMenu//
- **** FW_ReadObject<12FW_CMenuItem>(FW_CReadaaableStream&,FW_CMenuItem*&);
- //??//
- **** object = PrivCreateObject(readableStream, pair ? pair->fKey :
- FW_kNullTypeConstant); // FW_CPrivArchiver::CreateObject//
- **** objectPtr = create(readableStream, classLabel); //
- FW_CPrivArchiver::PrivCreateObject//
- **** FW_DEBUG_MESSAGE("FW_CMenuItem::Read should never have been called");
- //FW_CMenuItem::Read//
-
-
-